home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / graphics.17 / graphics / graphics-0.17 / plot2tek / Makefile < prev    next >
Encoding:
Makefile  |  1991-03-21  |  2.6 KB  |  81 lines

  1. defines = # -DSTDC_HEADERS -DHAVE_VOIDPTR
  2. CC=cc
  3. COPTS=-O
  4. CFLAGS=$(COPTS) $(defines)
  5. #LDFLAGS=-g
  6. LDLIBS=-lm
  7. GETOPT=../getopt
  8. #----------------------------------------------------------------
  9. # The toplevel make file uses these.
  10. .PHONY: all install clean realclean
  11. VERS=0.3
  12.  
  13. # $(DEV) indicates which graphics device this library supports.
  14. DEV=tek
  15. all : plot2$(DEV)
  16.  
  17. .c.o:
  18.     $(CC) $(CFLAGS) -I$(GETOPT) -I../include -DVERS=\"$(VERS)\" -c $<
  19.  
  20. install : plot2$(DEV)
  21.     install -c plot2$(DEV) $(BINDIR)
  22. # no manual page for plot2tek yet
  23. #    install -c plot2$(DEV).man $(MANDIR)/plot2$(DEV).$(MANEXT)
  24.  
  25. clean :
  26.     -rm -f *.o *~ \#* core test* diff TAGS CHECKSUMS
  27. realclean : clean
  28.     -rm -f plot2$(DEV) *.a spline*
  29.  
  30. all : plot2tek
  31. #----------------------------------------------------------------
  32. plot2tek : plot.o $(GETOPT)/getopt.o $(GETOPT)/getopt1.o libtek.a
  33.     $(CC) $(CFLAGS) -o plot2tek plot.o $(GETOPT)/getopt.o $(GETOPT)/getopt1.o libtek.a $(LDLIBS)
  34.  
  35. $(GETOPT)/getopt.o $(GETOPT)/getopt1.o : $(GETOPT)/getopt.c $(GETOPT)/getopt1.c
  36.     cd $(GETOPT); make all CC="$(CC)" CFLAGS="$(CFLAGS)"
  37. $(GETOPT)/getopt.o : $(GETOPT)/getopt.h $(GETOPT)/getopt.h
  38. $(GETOPT)/getopt1.o : $(GETOPT)/getopt.h $(GETOPT)/getopt.h
  39. #
  40. # Type `make libtek.a' to creaate the plot compatible library of
  41. # functions for postscript output.
  42. #
  43. LSRC = openpl.c closepl.c space.c rotate.c dot.c point.c \
  44. linemod.c line.c label.c alabel.c erase.c color.c move.c cont.c \
  45. arc.c circle.c fontname.c fontsize.c fill.c
  46.  
  47. LOBJ = openpl.o closepl.o space.o rotate.o dot.o point.o \
  48. linemod.o line.o label.o alabel.o erase.o color.o move.o cont.o \
  49. arc.o circle.o fontname.o fontsize.o fill.o
  50.  
  51. libtek.a : $(LOBJ)
  52.     ar ru libtek.a $?
  53.     ranlib libtek.a
  54.  
  55. #
  56. # Type `make TAGS' to update the TAGS file for use with GNU emacs.
  57. #
  58. TAGS : plot.c $(LSRC) ../include/libplot.h
  59.     etags plot.c $(LSRC) ../include/libplot.h
  60. #
  61. # Dependencies generated by gcc -MM *.c *.h:
  62. #
  63. alabel.o : alabel.c ../include/libplot.h 
  64. arc.o : arc.c ../include/libplot.h 
  65. box.o : box.c ../include/libplot.h 
  66. circle.o : circle.c ../include/libplot.h 
  67. closepl.o : closepl.c ../include/libplot.h 
  68. color.o : color.c ../include/libplot.h 
  69. cont.o : cont.c ../include/libplot.h 
  70. dot.o : dot.c ../include/libplot.h 
  71. erase.o : erase.c ../include/libplot.h 
  72. label.o : label.c ../include/libplot.h 
  73. line.o : line.c ../include/libplot.h 
  74. linemod.o : linemod.c ../include/libplot.h 
  75. move.o : move.c ../include/libplot.h 
  76. openpl.o : openpl.c ../include/libplot.h 
  77. plot.o : plot.c ../include/libplot.h 
  78. point.o : point.c ../include/libplot.h 
  79. rotate.o : rotate.c ../include/libplot.h 
  80. space.o : space.c ../include/libplot.h 
  81.